/**  
 * @author 胡鸿宣
 * @createDate 2020年1月10日
 */

package com.demo.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import groovy.transform.TimedInterrupt;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

import org.hibernate.annotations.Where;

/**
 * 
 * @Description  用户个人信息实体bean
 * @author  胡鸿宣
 * @changeLog 	1. 创建 (2020年1月10日 上午11:02:53 [huhongxuan])
 *                      	2.
 */

@Entity
@Table(name="userinformation")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class UserInformation implements Serializable{
	//主键
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id")
	private Integer id;
	//用户姓名
	@Column(name="uname")
	private String uname;
	//岗位
	@Column(name="station")
	private String station;
	//职责
	@Column(name="duty")
	private String duty;
	//电话
	@Column(name="telephone")
	private String telephone;
	//邮箱
	@Column(name="email")
	private String email;
	//用户ID
	@Column(name="creator")
	private Integer creator;
	
	//创建时间
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name="createTime")
	private Date createTime;
	
	//修改时间
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name="updateTime")
	private Date updateTime;
	
	@Column(name="isDelete")
	private int isDelete;
	
	@Column(name="refDepartmentId")
	private int refDepartmentId;
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getStation() {
		return station;
	}

	public void setStation(String station) {
		this.station = station;
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	public Integer getCreator() {
		return creator;
	}
	
	public void setCreator(Integer creator) {
		this.creator = creator;
	}
	
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	
	public int getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}

	
	
	/**
	 * @return the refDepartmentId
	 */
	public int getRefDepartmentId() {
		return refDepartmentId;
	}

	/**
	 * @param refDepartmentId the refDepartmentId to set
	 */
	public void setRefDepartmentId(int refDepartmentId) {
		this.refDepartmentId = refDepartmentId;
	}

	/**
	 * @param id 主键
	 * @param uname 姓名
	 * @param station 岗位
	 * @param duty 职责
	 * @param telephone 电话
	 * @param email 邮件
	 * @param creator 用户ID
	 * @param createTime 创建时间
	 * @param updateTime 更新时间
	 */
	public UserInformation(Integer id, String uname, String station, String duty, String telephone, String email,
			Integer creator, Date createTime, Date updateTime) {
		this.id = id;
		this.uname = uname;
		this.station = station;
		this.duty = duty;
		this.telephone = telephone;
		this.email = email;
		this.creator = creator;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	

	public UserInformation() {
	
	}

	
}
